package org.jeecg.modules.meter.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.entity.meter.Meter;
import org.jeecg.entity.meter.MeterSmsConfig;
import org.jeecg.modules.meter.mapper.MeterGatewayMapper;
import org.jeecg.modules.meter.mapper.MeterSmsConfigMapper;
import org.jeecg.modules.meter.service.IMeterSmsConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 短信
 * @Author: jeecg-boot
 * @Date:   2020-12-24
 * @Version: V1.0
 */
@Service
public class MeterSmsConfigServiceImpl extends ServiceImpl<MeterSmsConfigMapper, MeterSmsConfig> implements IMeterSmsConfigService {
    @Autowired
    private MeterGatewayMapper meterGatewayMapper;
    @Autowired
    private MeterSmsConfigMapper meterSmsConfigMapper;
    @Override
    public Integer querySmsConfig(String projectId) {
        return meterGatewayMapper.querySmsConfig(projectId);
    }

    @Override
    public IPage<MeterSmsConfig> findPage(Page<MeterSmsConfig> page, MeterSmsConfig meterSmsConfig) {
        return meterSmsConfigMapper.findPage(page,meterSmsConfig);
    }
}
